package com.xiaoxin.myhouse.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xiaoxin.myhouse.mapper.UserMapper;
import com.xiaoxin.myhouse.pojo.User;
import com.xiaoxin.myhouse.pojo.UserExample;
import com.xiaoxin.myhouse.pojo.UserExample.Criteria;

@Service
public class UserService {
	
	
	@Autowired
	private UserMapper userMapper;
	
	
	public User findByUserName(String username) {
		User user = userMapper.findByUsername(username);
		return user;
		
	}

}
